/*
  Copyright � 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  ThanhNam ERP Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using QuocTeViet.DAL;
using QuocTeViet.DO;
/// <summary>
/// Summary description for cmsLoaiSanPhamBL
/// </summary>
namespace QuocTeViet.BL 
{
    public class cmsLoaiSanPhamBL 
    {
    	#region Private Variables
		cmsLoaiSanPhamDAL objcmsLoaiSanPhamDAL;
		#endregion
		
        #region Public Constructors
        public cmsLoaiSanPhamBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsLoaiSanPhamDAL=new cmsLoaiSanPhamDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsLoaiSanPhamDO objcmsLoaiSanPhamDO)
        {
            return objcmsLoaiSanPhamDAL.Insert(objcmsLoaiSanPhamDO);
        }

        public int Update(cmsLoaiSanPhamDO objcmsLoaiSanPhamDO)
        {
             return objcmsLoaiSanPhamDAL.Update(objcmsLoaiSanPhamDO);

        }

        public int Delete(cmsLoaiSanPhamDO objcmsLoaiSanPhamDO)
        {
             return objcmsLoaiSanPhamDAL.Delete(objcmsLoaiSanPhamDO);

        }

         public int DeleteAll()
        {
             return objcmsLoaiSanPhamDAL.DeleteAll();
        }

        public cmsLoaiSanPhamDO Select(cmsLoaiSanPhamDO objcmsLoaiSanPhamDO)
        {
            return objcmsLoaiSanPhamDAL.Select(objcmsLoaiSanPhamDO);
        }

        public ArrayList SelectAll1( )
        {
         return objcmsLoaiSanPhamDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objcmsLoaiSanPhamDAL.SelectAll();
        }

        public DataTable SelectAll(int id)
        {
            return objcmsLoaiSanPhamDAL.SelectAll(id);
        }

		public DataTable SelectByParent(int id)
        {
            return objcmsLoaiSanPhamDAL.SelectByParent(id);
        }
        public DataTable SelectParent(int number)
        {
            return objcmsLoaiSanPhamDAL.SelectParent(number);
        }
     
#endregion          
    
    }

}
